@extends('layout')

@section('content')
    <link rel="stylesheet" href="{{asset('css/about.css')}}">
    <div class="container about-content">
        <div class="row">
            <div class="col-sm-3" style="text-align: center;">
                <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                    @foreach($navs as $key => $item)
                        <a class="nav-link {{$type==$key?'active':''}}" href="?type={{$key}}" >{{$item}}</a>
                    @endforeach
                </div>
                @component('gongao',['gonggao'=>$gonggao])
                @endcomponent
            </div>
            <div class="col-sm-9">
                {{--<nav aria-label="breadcrumb">--}}
                    {{--<ol class="breadcrumb">--}}
                        {{--<li class="breadcrumb-item"><a href="#">Home</a></li>--}}
                        {{--<li class="breadcrumb-item"><a href="#">Library</a></li>--}}
                        {{--<li class="breadcrumb-item active" aria-current="page">Data</li>--}}
                    {{--</ol>--}}
                {{--</nav>--}}
                <div class="tab-content" id="v-pills-tabContent">
                    <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
                        <div class="part-title-box">
                            <div class="part-title">{{$title}}</div>
                        </div>
                        <ul class="table-content" style="padding: 0 20px">
                            @foreach($news as $item)
                                <li>
                                    <a href="/news/{{$item -> id}}" class="table-item ">
                                        <div>
                                            <i class="fa fa-caret-right"></i>
                                            <p>{{$item -> title}}</p>
                                        </div>
                                        <p class="item-date">{{$item -> creat_at}}</p>
                                    </a>
                                </li>
                            @endforeach
                        </ul>

                    </div>

                    {{--<nav aria-label="Page navigation example">--}}
                        {{--<ul class="pagination justify-content-center">--}}
                            {{--<li class="page-item disabled">--}}
                                {{--<a class="page-link" href="#" tabindex="-1">Previous</a>--}}
                            {{--</li>--}}
                            {{--<li class="page-item"><a class="page-link" href="#">1</a></li>--}}
                            {{--<li class="page-item"><a class="page-link" href="#">2</a></li>--}}
                            {{--<li class="page-item"><a class="page-link" href="#">3</a></li>--}}
                            {{--<li class="page-item">--}}
                                {{--<a class="page-link" href="#">Next</a>--}}
                            {{--</li>--}}
                        {{--</ul>--}}
                    {{--</nav>--}}
                </div>
            </div>
        </div>
    </div>
@endsection
